<template>
  <NoticeForm :noticeId="noticeId"></NoticeForm>
</template>
<script setup name="EditNotice">
import { useRoute, useRouter } from 'vue-router'
import NoticeForm from '@/views/system/notice/modules/noticeForm'
const route = useRoute()
let noticeId = ref(null)
watch(
  () => route.query.noticeId,
  val => {
    if (route.query.noticeId) {
      noticeId.value = route.query.noticeId
    }
  },
  {
    immediate: true
  }
)
</script>
